package com.igbeok.miscellaneous.concurrency.thij;



public class Restaurant3 extends Restaurant{

	
	public static void main(String[] args) {
		Object synObj = new Object();
		Restaurant restaurant = new Restaurant3();
		WaitPerson3 waitPerson1 = new WaitPerson3("waitPerson1",restaurant, synObj);
		WaitPerson3 waitPerson2 = new WaitPerson3("waitPerson2",restaurant, synObj);
		/*WaitPerson3 waitPerson3 = new WaitPerson3("waitPerson3",restaurant, synObj);
		WaitPerson3 waitPerson4 = new WaitPerson3("waitPerson4",restaurant, synObj);
		WaitPerson3 waitPerson5 = new WaitPerson3("waitPerson5",restaurant, synObj);*/
		Chef3 chef1 = new Chef3("chef1",restaurant, synObj);
		Chef3 chef2 = new Chef3("chef2",restaurant, synObj);		
		chef1.start();
		chef2.start();
		waitPerson1.start();
		waitPerson2.start();
	/*	waitPerson3.start();
		waitPerson4.start();
		waitPerson5.start();*/

	}
}
